import { createBrowserRouter, Navigate } from "react-router-dom";
import Home from "../views/home";
import App from "../App";
import UserList from '../views/image/List';
import UserAnalysis from '../views/image/Analysis';
import UserSettings from '../views/image/Settings';

const router = createBrowserRouter([
    {
        path: "/",
        element: <App />,
        children:[
            {
                path:'',
                element: <Navigate to="image/list" replace />
            },
            {
                path: 'image/list',
                element: <UserList />,
            },
            {
                path: 'image/analysis',
                element: <UserAnalysis />,
            },
            {
                path: 'image/settings',
                element: <UserSettings />,
            }
        ]
    },
]);

export default router;